package com.llb666.e.shop.infrastructure.convert;

import com.llb666.e.shop.domain.entity.ItemsImg;
import com.llb666.e.shop.infrastructure.po.ItemsImgPo;
import org.mapstruct.Mapper;
import org.mapstruct.ReportingPolicy;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * @author 斌~
 * @date 2022/8/7 下午8:33
 */
@Mapper(unmappedTargetPolicy = ReportingPolicy.IGNORE)
public interface ItemsImgCvt {
    ItemsImgCvt INSTANCE = Mappers.getMapper(ItemsImgCvt.class);

    ItemsImgPo do2po(ItemsImg itemsImg);

    ItemsImg po2do(ItemsImgPo itemsImgPo);

    List<ItemsImg> po2doList(List<ItemsImgPo> itemsImgPoList);
}
